/*jslint browser: true, devel: true, bitwise: true, white: true, plusplus: true */
/*global $:true, define:true */

/**
 * @module Core
 */

define(function() {
"use strict";

/** 
 * @class LoadingScreen
 * @constructor
 */
var LoadingScreen = function() {
	this.LoadingElement = null;  
	this.Visibled = false;
};
LoadingScreen.prototype = {
	show: function(viewMain) {
		if (!this.Visibled) {
			this.LoadingElement.appendTo(($(viewMain)));
			this.Visibled = true;
		}
	},
	
	hide: function() {
		if (this.Visibled) {
			this.LoadingElement.detach();
			this.Visibled = false;
		}
	}
};

return LoadingScreen;
});
